package hanshunping.project.chatRoom.common;

import java.io.Serializable;

/**
 * create by: 蔡博
 * description: TODO
 * create time: 2022/11/16 14:17
 * 表示客户端和服务器端通信时的消息对象
 *
 * @Param: null
 * @return
 */
public class Message implements Serializable {
    private static final long serialVersionUID = 1l;
    private String sender;
    private String getter;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getGetter() {
        return getter;
    }

    public void setGetter(String getter) {
        this.getter = getter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getMesType() {
        return mesType;
    }

    public void setMesType(String mesType) {
        this.mesType = mesType;
    }

    private String content;
    private String time;
    private String mesType; //消息类型[可以在接口定义]

    public Message(String sender, String getter, String content, String time, String mesType) {
        this.sender = sender;
        this.getter = getter;
        this.content = content;
        this.time = time;
        this.mesType = mesType;
    }
    public Message() {
    }
}
